//
//  HotDetailsModel.m
//  SugarPile
//
//  Created by Charlie. on 16/1/21.
//  Copyright © 2016年 www.lanou39.蓝鸥科技. All rights reserved.
//

#import "HotDetailsModel.h"

@implementation HotDetailsModel
-(void)dealloc
{
    [_name release];
    [_path release];
    [_width release];
    [_height release];
    [_msg release];
    [_add_datetime_pretty release];
    [_username release];
    [_avatar release];
    [_target release];
    [_names release];
    [_like_username release];
    [_like_avatar release];
    [_userId release];
    [super dealloc];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"photo"]) {
        self.path = value[@"path"];
        self.width = value[@"width"];
        self.height = value[@"height"];
    }
    if ([key isEqualToString:@"sender"]) {
        self.username = value[@"username"];
        self.avatar = value[@"avatar"];
        
    }
    if ([key isEqualToString:@"id"]) {
        self.userId = value;
    }
//    if ([key isEqualToString:@"covers"]) {
//        self.path = [value firstObject][@"covers"];
//        
//    }
}
@end
